using System;
using UnityEngine;

[Serializable]
public class trytoaddmusic : MonoBehaviour
{
	public GameObject musicenabler;

	public void Update()
	{
		if ((bool)GameObject.Find("audioplayer(Clone)"))
		{
			UnityEngine.Object.Instantiate(musicenabler);
			if (!GameObject.Find("musicenabler(Clone)"))
			{
				UnityEngine.Object.Destroy(GameObject.Find("musicenabler(Clone)"));
				UnityEngine.Object.Instantiate(musicenabler);
			}
		}
	}

	public void Main()
	{
	}
}
